home *** CD-ROM | disk | FTP | other *** search
- OBJECTS2=$(OBJECTS) \
- ../nix/stdio/printf.o ../nix/stdio/fprintf.o ../nix/stdio/sprintf.o \
- ../nix/stdio/vprintf.o ../nix/stdio/vsprintf.o stdio/vfprintf.o \
- ../nix/stdio/scanf.o ../nix/stdio/fscanf.o ../nix/stdio/sscanf.o \
- ../nix/stdio/vscanf.o ../nix/stdio/vsscanf.o stdio/vfscanf.o
- BOBJECTS2=$(BOBJECTS) \
- ../nix/stdio/printf.bo ../nix/stdio/fprintf.bo ../nix/stdio/sprintf.bo \
- ../nix/stdio/vprintf.bo ../nix/stdio/vsprintf.bo stdio/vfprintf.bo \
- ../nix/stdio/scanf.bo ../nix/stdio/fscanf.bo ../nix/stdio/sscanf.bo \
- ../nix/stdio/vscanf.bo ../nix/stdio/vsscanf.bo stdio/vfscanf.bo
- OPTIONS=-I ../headers -O3 -Wall -DFULL_SPECIFIERS
- BOPTIONS=$(OPTIONS) -fbaserel -msmall-code
- REDEF=-D _DOSBase=___DOSBase \
- -D _UtilityBase=___UtilityBase \
- -D _MathIeeeSingBasBase=___MathIeeeSingBasBase \
- -D _MathIeeeSingTransBase=___MathIeeeSingTransBase \
- -D _MathIeeeDoubBasBase=___MathIeeeDoubBasBase \
- -D _MathIeeeDoubTransBase=___MathIeeeDoubTransBase \
- -D _LocaleBase=___LocaleBase
- PATTERN="*"
-
- #Use private library bases to avoid naming collisions
- %.o: %.c
- gcc $(OPTIONS) -S $*.c -o $*.S 2>&1|tee $*.err
- gcc -E -traditional -P $(REDEF) $*.S -o $*2.S
- gcc $*2.S -c -o $*.o
- -rm $*.S $*2.S
- -if test ! -s $*.err; then rm $*.err; fi
-
- %.bo: %.c
- gcc $(BOPTIONS) -S $*.c -o $*.S 2>&1|tee $*.err
- gcc -E -traditional -P $(REDEF) $*.S -o $*2.S
- gcc $*2.S -c -o $*.bo
- -rm $*.S $*2.S
- -if test ! -s $*.err; then rm $*.err; fi
-
- all: libm.a blibm.a
-
- makefile: submake ../headers/makemake
- rx /headers/makemake $(PATTERN) >makefile
-
- clean:
- -rm */*.o */*.bo */*.err
-
- veryclean: clean
- -rm libm.a blibm.a makefile
-
- libm.a: $(OBJECTS2) makefile
- -rm libm.a
- ar -q libm.a $(OBJECTS2)
- ranlib libm.a
-
- blibm.a: $(BOBJECTS2) makefile
- -rm blibm.a
- ar -q blibm.a $(BOBJECTS2)
- ranlib blibm.a
-
- stdio/vfprintf.o: ../nix/stdio/vfprintf.c
- gcc $(OPTIONS) ../nix/stdio/vfprintf.c -c -o stdio/vfprintf.o
-
- stdio/vfprintf.bo: ../nix/stdio/vfprintf.c
- gcc $(BOPTIONS) ../nix/stdio/vfprintf.c -c -o stdio/vfprintf.bo
-
- stdio/vfscanf.o: ../nix/stdio/vfscanf.c
- gcc $(OPTIONS) ../nix/stdio/vfscanf.c -c -o stdio/vfscanf.o
-
- stdio/vfscanf.bo: ../nix/stdio/vfscanf.c
- gcc $(BOPTIONS) ../nix/stdio/vfscanf.c -c -o stdio/vfscanf.bo
-
- .SUFFIXES:
- .SUFFIXES: .o .bo
-